<template>
	<view class="content">
		<!-- 轮播图组件 -->
		<swiper-image :swipers="swipers" :options="swiperOpeions"></swiper-image>
		<!-- 首页分类 -->
		<index-nav :navs="navs"></index-nav>
		<!-- 全局分割线 -->
		<divider></divider>
		<!-- 三图广告位 -->
		<three-adv :three-adv="threeAdv"></three-adv>
		<divider />
		<!-- 写基础卡片组件 -->
		<card :showHead="true" headTitle="每日精选" bodyCover="/static/images/amsb.jpg" />
		<card :showHead="false">
			<!-- <template slot="title"><text class="text-md font-medium">每日精选</text></template> -->
			<image src="/static/images/aj2ps.jpg" mode="widthFix"></image>
		</card>

		<!-- 公共列表组件 750-6 744/2 373 -->
		<list :list="list"></list>
	</view>
</template>

<script>
  import threeAdv from './components/three-adv'
	import card from '@/components/common/card'
	import List from '@/components/common/list'
	export default {
		components: { threeAdv, card, List },
		data() {
			return {
				swipers: [
					{src: '/static/images/aeeb.jpg'},
					{src: '/static/images/c6ff.jpg'},
					{src: '/static/images/f298.jpg'}
				],
				swiperOpeions: {
					indicatorDots: true,
					autoplay: true,
					interval: 3000,
					duration: 500
				},
				navs: [
					{src: '/static/images/b174.jpg'},
					{src: '/static/images/0434.jpg'},
					{src: '/static/images/b174.jpg'},
					{src: '/static/images/b174.jpg'},
					{src: '/static/images/b174.jpg'},
					{src: '/static/images/b174.jpg'},
					{src: '/static/images/b174.jpg'},
					{src: '/static/images/b174.jpg'},
					{src: '/static/images/b174.jpg'},
					{src: '/static/images/b174.jpg'}
				],
				threeAdv: {
					big: {
						src: '/static/images/29b3.jpg'
					},
					smalltop: {
						src: '/static/images/5b9a.jpg'
					},
					smallbottom: {
						src: '/static/images/a128.jpg'
					}
				},
				list: [
					{
						poster: '/static/images/b849.jpg',
						title: 'Xiaomi 11 Pro',
						desc: '1/1.12 GN2｜骁龙888',
						goingPrice: '3999',
						originalPrice: '4999'
					},
					{
						poster: '/static/images/94b2.jpg',
						title: 'Xiaomi MIX FOLD折叠屏手机',
						desc: '折叠大屏｜自研芯片',
						goingPrice: '6999',
						originalPrice: '7999'
					},
					{
						poster: '/static/images/6dca.jpg',
						title: 'Xiaomi 11 Pro',
						desc: '1/1.12 GN2｜骁龙888',
						goingPrice: '3999',
						originalPrice: '4999'
					},
					{
						poster: '/static/images/455c.jpg',
						title: 'Xiaomi MIX FOLD折叠屏手机',
						desc: '折叠大屏｜自研芯片',
						goingPrice: '6999',
						originalPrice: '7999'
					}
				]
			}
		},
		onLoad() {

		},
		methods: {
		}
	}
</script>

<style>
	.content {
		padding-bottom: var(--window-bottom);
	}
</style>
